.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1061;
  display: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}
.modal:nth-of-type(1) {
    z-index: 1061 !important;
}
.modal:nth-of-type(2) {
    z-index: 1062 !important;
}
.modal:nth-of-type(3) {
    z-index: 1063 !important;
} 
.modal:nth-of-type(4) {
    z-index: 1064 !important;
} 
.modal:nth-of-type(5) {
    z-index: 1065 !important;
} 
.modal:nth-of-type(6) {
    z-index: 1066 !important;
} 		
.modal:nth-of-type(7) {
    z-index: 1067 !important;
} 

.modal-backdrop.in:nth-last-of-type(1) {
	z-index: 1060 !important;
}
.modal-backdrop.in:nth-last-of-type(2) {
	z-index: 1061 !important;
} 
.modal-backdrop.in:nth-last-of-type(3) {
	z-index: 1062 !important;
}
.modal-backdrop.in:nth-last-of-type(4) {
	z-index: 1063 !important;
}
.modal-backdrop.in:nth-last-of-type(5) {
	z-index: 1064 !important;
}
.modal-backdrop.in:nth-last-of-type(6) {
	z-index: 1065 !important;
}
.modal-backdrop.in:nth-last-of-type(7) {
	z-index: 1066 !important;
}